package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.CusPatrolPlanParam;
import com.xinsoft.entity.po.CusPatrolPlan;
import com.xinsoft.entity.vo.CusPatrolPlanDetailVo;
import com.xinsoft.entity.vo.CusPatrolPlanDeviceVo;

import java.util.List;

/**
* @author lijie
* @description 针对表【cus_patrol_plan(巡检计划)】的数据库操作Mapper
* @createDate 2023-06-20 13:49:29
* @Entity com.xinsoft.entity.po.CusPatrolPlan
*/
public interface CusPatrolPlanMapper extends BaseMapper<CusPatrolPlan> {

    IPage<CusPatrolPlan> findListByParam(Page<CusPatrolPlan> page, CusPatrolPlanParam param);

    List<CusPatrolPlanDetailVo> getListItemByPlanId(Integer id);

    List<CusPatrolPlanDeviceVo> getDeviceListByPatrolId(Integer id);

    List<CusPatrolPlanDetailVo> getDetailListByDeviceId(Integer deviceId, Integer id);
}




